//
//  ChanelNumCell.m
//  DianNaoWang
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//
#import "Header.h"
#import "ChanelNumCell.h"

@implementation ChanelNumCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatView];
    }
    return self;
}
- (void)creatView
{
    _nameLabel = [[UILabel alloc]init];
    _nameLabel.backgroundColor = [UIColor clearColor];
    _nameLabel.textAlignment = 1;
    [self.contentView addSubview:_nameLabel];

}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _nameLabel.frame = CGRectMake(0, 0, 50 * FitWidth, 20 * FitHeight);
}

-(void)setChanelNum:(ChannelNum *)chanelNum
{
    if (_chanelNum != chanelNum) {
        _chanelNum = chanelNum;
    }
    _nameLabel.text = chanelNum.name;
    _nameLabel.textColor = [UIColor whiteColor];
    _nameLabel.font = titleSize;
}

@end
